package com.thewell79.android.Request;

import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.StringRequest;

public class RequestString extends StringRequest {

	private static final int TIMEOUT_MS = 5000; 
	
	public RequestString(int method, String url, Listener<String> listener,
			ErrorListener errorListener) {
		super(method, url, listener, errorListener);
		
		setRetryPolicy(new DefaultRetryPolicy(
				TIMEOUT_MS,
				DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
				DefaultRetryPolicy.DEFAULT_MAX_RETRIES));
	}
	
	
}
